(function(angular) {
	'use strict';
	angular.module("fs.waf").factory("wfBpmPkgService", wfBpmPkgService );
	wfBpmPkgService.$inject = [ '$q', 'loggerFactory', 'commonService', 'ajaxServiceFactory', 'modalService', 'gridService' ];
	function wfBpmPkgService($q, loggerFactory, commonService, ajaxServiceFactory, modalService, gridService) {
		var log = loggerFactory.getLogger("wfBpmPkgService");
		var ajaxService = ajaxServiceFactory.buildAjaxService({
			getServices : {
				url : 'do/cda/dataList/serviceCode',
				method : 'post'
			}
		});
		function getServiceOptions() {
			var defer = $q.defer();
			ajaxService.getServices().then(function(response) {
				defer.resolve(response);
			});
			return defer.promise;
		}
		
		return {
			getServiceOptions : getServiceOptions
		};
	}
})(angular);